home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tex / texindex.shar / texindex.sty < prev   
LaTeX Document  |  1988-04-18  |  1.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: LaTeX Document (document/latex).

You can browse this item here: texindex.sty

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert DirectMusic Style (music/directMusicStyle) ext Unsupported
1% dexvert Microsoft Word Style Sheet (other/microsoftWordStyleSheet) ext Unsupported
1% dexvert Grand Theft Auto 2 Style data (other/grandTheftAuto2StyleData) ext Unsupported
1% dexvert KORG File (other/korgFile) ext Unsupported
1% dexvert MAGIX music studio Style (other/magixMusicStudioStyle) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX auxiliary file default
99% file LaTeX document text default
98% file LaTeX sorted index, ASCII text default (weak)
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 64 65 66 5c 6d 61 6b | 65 69 6e 64 65 78 7b 5c |\def\mak|eindex{\|
|00000010| 69 66 40 66 69 6c 65 73 | 77 20 5c 6e 65 77 77 72 |if@files|w \newwr|
|00000020| 69 74 65 5c 40 69 6e 64 | 65 78 66 69 6c 65 0a 20 |ite\@ind|exfile. |
|00000030| 20 5c 69 6d 6d 65 64 69 | 61 74 65 5c 6f 70 65 6e | \immedi|ate\open|
|00000040| 6f 75 74 5c 40 69 6e 64 | 65 78 66 69 6c 65 3d 5c |out\@ind|exfile=\|
|00000050| 6a 6f 62 6e 61 6d 65 2e | 69 64 78 0a 20 20 5c 64 |jobname.|idx. \d|
|00000060| 65 66 5c 69 6e 64 65 78 | 7b 5c 40 62 73 70 68 61 |ef\index|{\@bspha|
|00000070| 63 6b 5c 62 65 67 69 6e | 67 72 6f 75 70 5c 40 73 |ck\begin|group\@s|
|00000080| 61 6e 69 74 69 7a 65 5c | 40 77 72 69 6e 64 65 78 |anitize\|@wrindex|
|00000090| 5c 40 69 6e 64 65 78 66 | 69 6c 65 7d 5c 74 79 70 |\@indexf|ile}\typ|
|000000a0| 65 6f 75 74 0a 20 20 7b | 57 72 69 74 69 6e 67 20 |eout. {|Writing |
|000000b0| 69 6e 64 65 78 20 66 69 | 6c 65 20 5c 6a 6f 62 6e |index fi|le \jobn|
|000000c0| 61 6d 65 2e 69 64 78 20 | 7d 5c 66 69 7d 0a 0a 5c |ame.idx |}\fi}..\|
|000000d0| 64 65 66 5c 40 77 72 69 | 6e 64 65 78 23 31 23 32 |def\@wri|ndex#1#2|
|000000e0| 7b 5c 6c 65 74 5c 74 68 | 65 70 61 67 65 5c 72 65 |{\let\th|epage\re|
|000000f0| 6c 61 78 0a 20 20 20 5c | 78 64 65 66 5c 40 67 74 |lax. \|xdef\@gt|
|00000100| 65 6d 70 61 7b 5c 77 72 | 69 74 65 23 31 7b 5c 73 |empa{\wr|ite#1{\s|
|00000110| 74 72 69 6e 67 0a 20 20 | 20 20 20 20 3c 5c 74 68 |tring. | <\th|
|00000120| 65 70 61 67 65 3b 4e 3b | 50 3b 23 32 3e 7d 7d 5c |epage;N;|P;#2>}}\|
|00000130| 65 6e 64 67 72 6f 75 70 | 5c 40 67 74 65 6d 70 61 |endgroup|\@gtempa|
|00000140| 0a 20 20 20 5c 69 66 40 | 6e 6f 62 72 65 61 6b 20 |. \if@|nobreak |
|00000150| 5c 69 66 76 6d 6f 64 65 | 5c 6e 6f 62 72 65 61 6b |\ifvmode|\nobreak|
|00000160| 5c 66 69 5c 66 69 5c 40 | 65 73 70 68 61 63 6b 7d |\fi\fi\@|esphack}|
|00000170| 0a 0a 25 20 5c 64 65 66 | 5c 69 6e 64 65 78 7b 5c |..% \def|\index{\|
|00000180| 40 62 73 70 68 61 63 6b | 5c 62 65 67 69 6e 67 72 |@bsphack|\begingr|
|00000190| 6f 75 70 5c 40 73 61 6e | 69 74 69 7a 65 5c 40 69 |oup\@san|itize\@i|
|000001a0| 6e 64 65 78 7d 0a 5c 64 | 65 66 5c 69 6e 64 65 78 |ndex}.\d|ef\index|
|000001b0| 7b 5c 40 62 73 70 68 61 | 63 6b 5c 62 65 67 69 6e |{\@bspha|ck\begin|
|000001c0| 67 72 6f 75 70 0a 20 20 | 20 20 5c 64 65 66 5c 70 |group. | \def\p|
|000001d0| 72 6f 74 65 63 74 23 23 | 23 23 31 7b 5c 73 74 72 |rotect##|##1{\str|
|000001e0| 69 6e 67 23 23 23 23 31 | 5c 73 70 61 63 65 7d 5c |ing####1|\space}\|
|000001f0| 40 73 61 6e 69 74 69 7a | 65 0a 20 20 20 20 5c 63 |@sanitiz|e. \c|
|00000200| 61 74 63 6f 64 65 22 32 | 30 3d 31 30 5c 72 65 6c |atcode"2|0=10\rel|
|00000210| 61 78 5c 40 69 6e 64 65 | 78 7d 0a 0a 5c 64 65 66 |ax\@inde|x}..\def|
|00000220| 5c 40 69 6e 64 65 78 7b | 5c 40 69 66 6e 65 78 74 |\@index{|\@ifnext|
|00000230| 63 68 61 72 5b 7b 5c 40 | 40 69 6e 64 65 78 7d 7b |char[{\@|@index}{|
|00000240| 5c 40 40 69 6e 64 65 78 | 5b 5d 7d 7d 0a 5c 64 65 |\@@index|[]}}.\de|
|00000250| 66 5c 40 69 6e 64 65 78 | 5b 23 31 5d 23 32 7b 5c |f\@index|[#1]#2{\|
|00000260| 65 6e 64 67 72 6f 75 70 | 5c 40 65 73 70 68 61 63 |endgroup|\@esphac|
|00000270| 6b 7d 0a 0a 25 20 54 68 | 69 73 20 69 73 20 74 68 |k}..% Th|is is th|
|00000280| 65 20 70 6f 73 74 20 70 | 72 6f 63 65 73 73 6f 72 |e post p|rocessor|
|00000290| 20 66 6f 72 20 74 68 65 | 20 69 6e 64 65 78 69 6e | for the| indexin|
|000002a0| 67 20 70 61 63 6b 61 67 | 65 0a 0a 5c 64 65 66 5c |g packag|e..\def\|
|000002b0| 69 6e 73 65 72 74 69 6e | 64 65 78 7b 5c 40 69 6e |insertin|dex{\@in|
|000002c0| 70 75 74 7b 5c 6a 6f 62 | 6e 61 6d 65 2e 69 6e 64 |put{\job|name.ind|
|000002d0| 7d 7d 0a 0a 5c 64 65 66 | 5c 69 6e 64 65 78 53 74 |}}..\def|\indexSt|
|000002e0| 61 72 74 7b 5c 62 65 67 | 69 6e 7b 74 68 65 69 6e |art{\beg|in{thein|
|000002f0| 64 65 78 7d 5c 64 65 66 | 5c 2c 7b 7d 7d 0a 5c 64 |dex}\def|\,{}}.\d|
|00000300| 65 66 5c 69 6e 64 65 78 | 45 6e 64 7b 5c 65 6e 64 |ef\index|End{\end|
|00000310| 7b 74 68 65 69 6e 64 65 | 78 7d 7d 0a 0a 25 20 4c |{theinde|x}}..% L|
|00000320| 65 61 76 65 20 73 70 61 | 63 65 20 62 65 74 77 65 |eave spa|ce betwe|
|00000330| 65 6e 20 6c 65 74 74 65 | 72 73 20 6f 66 20 61 6c |en lette|rs of al|
|00000340| 70 68 61 62 65 74 20 28 | 65 78 63 65 70 74 20 66 |phabet (|except f|
|00000350| 6f 72 20 74 68 65 20 66 | 69 72 73 74 20 74 69 6d |or the f|irst tim|
|00000360| 65 29 0a 5c 64 65 66 5c | 69 6e 64 65 78 43 68 61 |e).\def\|indexCha|
|00000370| 72 23 31 7b 5c 64 65 66 | 5c 69 6e 64 65 78 43 68 |r#1{\def|\indexCh|
|00000380| 61 72 23 23 31 7b 5c 69 | 6e 64 65 78 73 70 61 63 |ar##1{\i|ndexspac|
|00000390| 65 7d 7d 0a 0a 25 20 54 | 68 69 73 20 68 61 63 6b |e}}..% T|his hack|
|000003a0| 20 70 75 74 73 20 6f 75 | 74 20 74 68 65 20 63 72 | puts ou|t the cr|
|000003b0| 6f 73 73 72 65 66 73 2c | 20 64 69 73 63 61 72 64 |ossrefs,| discard|
|000003c0| 73 20 74 68 65 20 3c 66 | 6c 61 67 3e 0a 25 20 61 |s the <f|lag>.% a|
|000003d0| 6e 64 20 6c 65 61 76 65 | 73 20 74 68 65 20 73 75 |nd leave|s the su|
|000003e0| 62 74 65 72 6d 73 20 74 | 6f 20 62 65 20 72 65 61 |bterms t|o be rea|
|000003f0| 64 20 6e 65 78 74 0a 5c | 64 65 66 5c 69 6e 64 65 |d next.\|def\inde|
|00000400| 78 54 61 69 6c 23 31 23 | 32 23 33 7b 23 31 23 33 |xTail#1#|2#3{#1#3|
|00000410| 7d 0a 0a 25 20 54 68 65 | 20 6d 61 69 6e 20 72 6f |}..% The| main ro|
|00000420| 75 74 69 6e 65 0a 5c 64 | 65 66 5c 69 6e 64 65 78 |utine.\d|ef\index|
|00000430| 45 6e 74 72 79 23 31 23 | 32 23 33 7b 5c 69 66 63 |Entry#1#|2#3{\ifc|
|00000440| 61 73 65 23 31 5c 69 74 | 65 6d 5c 6f 72 5c 73 75 |ase#1\it|em\or\su|
|00000450| 62 69 74 65 6d 5c 6f 72 | 5c 73 75 62 73 75 62 69 |bitem\or|\subsubi|
|00000460| 74 65 6d 5c 65 6c 73 65 | 0a 5c 40 6c 61 74 65 78 |tem\else|.\@latex|
|00000470| 65 72 72 7b 54 6f 6f 20 | 64 65 65 70 20 69 6e 64 |err{Too |deep ind|
|00000480| 65 78 20 6e 65 73 74 69 | 6e 67 7d 7b 49 6e 64 65 |ex nesti|ng}{Inde|
|00000490| 78 20 6c 65 76 65 6c 73 | 20 61 72 65 20 74 6f 6f |x levels| are too|
|000004a0| 20 6e 65 73 74 65 64 20 | 74 6f 6f 20 64 65 65 70 | nested |too deep|
|000004b0| 2e 5e 5e 4a 0a 49 20 63 | 61 6e 20 6f 6e 6c 79 20 |.^^J.I c|an only |
|000004c0| 68 61 6e 64 6c 65 20 73 | 75 62 2d 73 75 62 2d 65 |handle s|ub-sub-e|
|000004d0| 6e 74 72 69 65 73 2e 5e | 5e 4a 0a 50 72 6f 63 65 |ntries.^|^J.Proce|
|000004e0| 65 64 20 61 6e 64 20 74 | 68 61 74 27 73 20 77 68 |ed and t|hat's wh|
|000004f0| 61 74 20 79 6f 75 27 6c | 6c 20 67 65 74 2e 7d 5c |at you'l|l get.}\|
|00000500| 66 69 0a 23 32 5c 69 6e | 64 65 78 54 61 69 6c 23 |fi.#2\in|dexTail#|
|00000510| 33 7d 0a | |3}. | |
+--------+-------------------------+-------------------------+--------+--------+